solving rational equations and inequalities